<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="./vue.js"></script>
</head>

<body>
  <div id="app">
    {{name}}
    <cpn></cpn>
    <cpn>
      <template slot-scope="slot">
        <span>{{slot.aaa.join('-')}}</span>
      </template>
    </cpn>
    <cpn>
      <template slot-scope="slot">
        <span>{{slot.aaa.join('*')}}</span>
      </template>
    </cpn>
  </div>
  <template id="cpn">
    <div>
      <slot :aaa="planguages">
        <ul>
          <li v-for="item in planguages">{{item}}</li>
        </ul>
      </slot>
      <h2>--------------</h2>
    </div>
  </template>
  <script>
    var vm = new Vue({
      el: '#app',
      data: {
        name: 'Taec',
      },
      components: {
        cpn: {
          template: "#cpn",
          data() {
            return {
              planguages: ['Javascript', 'C++', 'Java', 'python', 'Go', 'C++']
            }
          }
        }
      }

    })
  </script>
</body>

</html>